package cn.bx.bid;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
//@MapperScan("cn.bx.bid.repository")
@EnableEurekaClient// 允许作为eureka server
public class BidApplication {

    public static void main(String[] args) {
        SpringApplication.run(BidApplication.class, args);
    }
@Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
}

}
